package com.sunny;

import java.io.*;

public class FileWrite {

    public static void main(String[] args) {

        File file = new File("abab");
        try (FileOutputStream fout = new FileOutputStream(file)){
            OutputStreamWriter osw = new OutputStreamWriter(fout,"UTF-8");
            String content = "按时发撒是阿芳阿芳按时发撒发撒大厦发撒fasdfasfasf阿斯啊打发发生的啊发asdf asdf 撒阿斯蒂芬阿芳按时dfsaafs fas f顿发生啊非按时阿芳阿萨德发撒大厦 fjk安康老师的房间爱看书金asfasdfasdf 风科asfasf a fasd fas 阿斯顿发生发大厦发生的发送发顺丰技爱上的咖啡金卡是减肥课教案上sdfjksjadfl kasfka快乐健康";
            osw.write(content);
            osw.flush();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }finally {
        }

    }

}
